@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './sidebarView.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

.cell .el-link {margin-right: 8px;font-size: 13px;}

.reg-box-card {
  position: relative;
  width: 520px;
  max-width: 100%;
  margin: 50px auto;
  overflow: hidden;
}

$bg:#2d3a4b;
$dark_gray:#889aa4;
$light_gray:#eee;

.login-container {
  min-height: 100%;
  width: 100%;
  overflow: hidden;

  .login-form {
    position: relative;
    width: 520px;
    max-width: 100%;
    padding: 160px 35px 0;
    margin: 0 auto;
    overflow: hidden;
  }

  .tips {
    font-size: 14px;
    color: #fff;
    margin-bottom: 10px;

    span {
      &:first-of-type {
        margin-right: 16px;
      }
    }
  }

  .svg-container {
    padding: 6px 5px 6px 15px;
    color: $dark_gray;
    vertical-align: middle;
    width: 30px;
    display: inline-block;
  }

  .title-container {
    position: relative;

    .title {
      color: #545454;
      font-size: 26px;
      margin: 0px auto 40px auto;
      text-align: center;
      font-weight: bold;
    }
  }
}
.cursor-pointer { cursor: pointer; }
// 修复el-link在表格中会下沉1px
.el-alert__content .el-link,
.cell .el-link {
  margin-bottom: 1px;
}
.cell .el-button {padding: 0;}
.pagination {margin-top: 5px;}
.reg-box-card .clearfix{ text-align: center;}
.reg-box-card .alert{ margin-bottom: 20px;}
span.success, div.success, i.el-icon-success {color:#67C23A;}
span.warning, div.warning {color:#E6A23C;}
span.danger, div.danger, li.danger {color:#F56C6C;}
.info-tip {color: #909399;font-size: 14px;margin: 20px;}
span.tip {color: #909399;font-size: 13px;margin: 0 10px;}
h4 span, .normal-text { font-size: 14px;color: #606266;font-weight: normal; }
.code-block { font-size: 14px;color: #606266;font-weight: normal; background-color: #fafafa; padding: 5px;}
.text-form .el-form-item {margin-bottom: 0}
.base-info {margin-left: 20px;padding-top: 10px; color: #606266;}
.login-page {
  padding: 0 10px;
  background-color: rgba(223, 223, 223, 0.3);
  height: 100%;
  overflow: hidden;
}
.center-form {
  width: 500px;
  padding: 40px;
  margin: 80px auto;
  background: #ffffff;
  border: 1px solid #DCDFE6;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
}
.center-form h3 {text-align: center;color: #606266;}
.center-form .footer {
  text-align: center;
  margin-top:30px;
  font-size: 14px;
}
.el-alert-tip {margin-bottom: 20px}
fieldset {border: 1px solid #DCDFE6;padding: 20px;}
.key-content{
  padding: 10px;
  background-color: #eeeeee;
}
.el-option-left {float: left}
.el-option-right {float: right; color: #8492a6; font-size: 13px}
.el-table .hidden-row {
  display: none;
}
.table-control {margin-bottom: 18px;}
.param-table {
  .el-form {
    width: 100%;
    display: inline-block;
    .el-form-item {
      margin-bottom: 0;
      .el-form-item__content {
        .el-form-item__error {
          position: inherit;
        }
      }
    }
  }
  .el-switch {
    margin-bottom: 2px;
  }
}

.navbar .right-menu {
  float: right;
  height: 100%;
  line-height: 50px;
}

.navbar .right-menu .right-menu-item {
  display: inline-block;
  padding: 0 8px;
  height: 100%;
  font-size: 18px;
  color: #5a5e66;
  vertical-align: text-bottom;
}
.el-page-header {
  margin-bottom: 20px;
}

.cell .el-tag, .el-tag--small {
  height: auto !important;
  padding: 0 4px !important;
  line-height: 20px !important;
}
.split {
  color: #ccc;
  margin: 0 5px;
}
.user-drop-menu {
  top: 42px !important;
}
.doc-info-remark {
  padding-top: 10px;
}
.navbar-btn {
  font-size: 20px;
  color: #5a5e66;
}
.table-opt-btn {
  margin-bottom: 10px;
}

.torna-menu {
  height: calc(100vh - 50px);
  width: $sideBarWidth;
  .el-menu-item {
    //margin: 8px 0;
    .title {
      position: absolute;
      top: 15px;
      left: 8px;
      font-size: 14px;
      color: #606266;
    }
  }
  .el-menu-item.is-active {
    .title {
      color: #409EFF;
    }
  }
  .el-menu-item [class^=el-icon-] {
    font-size: 24px !important;
    vertical-align: top !important;
    margin-top: 10px !important;
  }
  .el-menu-item, .el-submenu__title {
    height: 70px;
    line-height: 70px;
  }
}

.torna-card {
  margin-top: 20px;
  margin-right: 20px;
  display: inline-block;
  .clearfix:before,
  .clearfix:after {
    display: table;
    content: "";
  }
  .clearfix:after {
    clear: both
  }

  .box-card {
    width: 300px;
    cursor: pointer;
  }
}

// index
.app-wrapper {
  @include clearfix;
  position: relative;
  height: 100%;
  width: 100%;
  &.mobile.openSidebar{
    position: fixed;
    top: 0;
  }
}
.drawer-bg {
  background: #000;
  opacity: 0.3;
  width: 100%;
  top: 0;
  height: 100%;
  position: absolute;
  z-index: 999;
}

.fixed-header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9;
  width: calc(100% - #{$sideBarWidth});
  transition: width 0.28s;
}

// nav
.navbar {
  height: 50px;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,21,41,.08);

  .hamburger-container {
    line-height: 46px;
    height: 100%;
    float: left;
    cursor: pointer;
    transition: background .3s;
    -webkit-tap-highlight-color:transparent;

    &:hover {
      background: rgba(0, 0, 0, .025)
    }
  }

  .breadcrumb-container {
    float: left;
  }

}

.doc-id {
  font-size: 14px;
  color: #909399;
}

.doc-descr {
  display: flex;

  span{
    display: inline-block;
  }
}

.v-note-wrapper {z-index: 1 !important;}
.normal-menu {height: 100%;}
.doc-modify-info {
  font-size: 12px;color: #909399;
}
.left-div {
  float: left;
}
.right-div {
  float: right;
  .el-link {
    margin-left: 10px;
  }
}

.normal-boarder {  border: 1px #EBEEF5 solid; }

// el-table fix
.el-table-tree {
  .el-table--row-no-parent-children {
    padding-left: 27px;
  }
}
.el-table {
  th,td {
    padding: 5px 0;
  }
  .tree--btn-wrapper {
    .el-icon-arrow-down {
      font-size: initial;
    }
  }
}
.icon-operation {
  .el-link {
    margin-right: 12px !important;
    font-size: 16px !important;
  }
}
// el-table end~

.table-right {
  float: right;
  margin-bottom: 10px;
  .table-right-item {
    display: inline-block;
  }
}

.doc-tree {
  .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after { border-color: #FFFFFF !important;}
  .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner { background-color: #409EFF !important;}
  .el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner::before { background-color: #FFFFFF !important;}
  .el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner { background-color: #409EFF !important;}
}

// doc view
.doc-view {
  .http-method {
    height: auto !important;
    line-height: 20px !important;
    padding: 0 4px !important;
  }
  .doc-overview {margin-top: 20px;margin-bottom: 30px;color: #666;font-size: 14px;}
  .debug-url { font-size: 14px;color: #606266 }
  .doc-title {
    margin: 0
  }
}

.btn-send {
  color: #FFFFFF !important;
  width: 100px;
  background-color: #409EFF !important;
  border-radius: 0 !important;
}
